Eclipse JDT
Pre-release 3.0

org.eclipse.jdt.launching.sourcelookup
Class LocalFileStorage

java.lang.Object
  extended byorg.eclipse.core.runtime.PlatformObject
      extended byorg.eclipse.jdt.launching.sourcelookup.LocalFileStorage
All Implemented Interfaces:
IAdaptable, IStorage

public class LocalFileStorage
extends PlatformObject
implements IStorage

Implementation of storage for a local file (java.io.File).

This class may be instantiated; it is not intended to be subclassed.

Since:
2.0
See Also:
DirectorySourceLocation, IStorage

Constructor Summary
LocalFileStorage(File file)
          Constructs and returns storage for the given file.
 
Method Summary
 boolean equals(Object object)
           
 InputStream getContents()
           
 File getFile()
          Returns the file asscoiated with this storage
 IPath getFullPath()
           
 String getName()
           
 int hashCode()
           
 boolean isReadOnly()
           
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

LocalFileStorage

public LocalFileStorage(File file)
Constructs and returns storage for the given file.

Parameters:
file - a local file
Method Detail

getContents

public InputStream getContents()
                        throws CoreException
Specified by:
getContents in interface IStorage
Throws:
CoreException

getFullPath

public IPath getFullPath()
Specified by:
getFullPath in interface IStorage

getName

public String getName()
Specified by:
getName in interface IStorage

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface IStorage

getFile

public File getFile()
Returns the file asscoiated with this storage

Returns:
file

equals

public boolean equals(Object object)

hashCode

public int hashCode()

Eclipse JDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.